import type { UploadUserFile, UploadRequestHandler } from "element-plus";

import MerakUpload from "./index.vue";

export type MerakUploadInstance = InstanceType<typeof MerakUpload>;

export interface MerakUploadFileType extends UploadUserFile {}

export interface MerakUploadProps {
  action?: string;
  name?: string;
  limit?: number;
  accept?: string;
  multiple?: boolean;
  disabled?: boolean;
  fileList?: UploadUserFile[];
  request?: UploadRequestHandler;
  delete?: (id: string) => Promise<void>;
}

export default MerakUpload;
